def list_while_func():
    my_list = ["传智教育", "黑马程序员", "Python"]
    index = 0
    while index < len(my_list):
        print(f"{my_list[index]}", end=' ')
        index += 1

def list_for_func():
    my_list = ["传智教育", "黑马程序员", "Python"]
    for element in my_list:
        print(f"{element}")


list_while_func()
print()
list_for_func()